package com.example.simin_manage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @description:
 * @author: panpan
 * @time: 2025/9/14
 */
@Data
@TableName("performance_rule")
public class PerformanceRule {

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long cycleId; // 对应 performance_period.id

    private Integer minOrders;

    private Integer maxOrders; // NULL 表示无限制

    private Double pricePerOrder; // 单价

    private LocalDateTime createTime;

    private LocalDateTime updateTime;
}